package org.ala.tiktools.mybatis.interceptor;

import java.lang.annotation.Annotation;

/**
 * @author ala
 * @date 2025-01-10 14:32
 */
public class AnnoatationAndInterceptor {
    protected Annotation anno;
    protected IAnnotationInterceptor interceptor;
    protected int sort;

    public static AnnoatationAndInterceptor build(Annotation anno, IAnnotationInterceptor interceptor, int sort) {
        AnnoatationAndInterceptor ai = new AnnoatationAndInterceptor();
        ai.anno = anno;
        ai.interceptor = interceptor;
        ai.sort = sort;
        return ai;
    }

    public Annotation getAnno() {
        return anno;
    }

    public void setAnno(Annotation anno) {
        this.anno = anno;
    }

    public IAnnotationInterceptor getInterceptor() {
        return interceptor;
    }

    public void setInterceptor(IAnnotationInterceptor interceptor) {
        this.interceptor = interceptor;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }
}
